package com.ruoyi.comment.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 评论对象 comment
 * 
 * @author ruoyi
 * @date 2023-09-26
 */
public class Comment extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 评论人 */
    @Excel(name = "评论人")
    private String name;

    /** 模块名 */
    @Excel(name = "模块名")
    private String module;

    /** 评论对象 0为根节点 */
    @Excel(name = "评论对象 0为根节点")
    private Long fid;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String content;

    /** 评论状态 1:正常 2:已屏蔽 3:已删除 */
    @Excel(name = "评论状态 1:正常 2:已屏蔽 3:已删除")
    private Integer status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setModule(String module) 
    {
        this.module = module;
    }

    public String getModule() 
    {
        return module;
    }
    public void setFid(Long fid) 
    {
        this.fid = fid;
    }

    public Long getFid() 
    {
        return fid;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("module", getModule())
            .append("fid", getFid())
            .append("content", getContent())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .toString();
    }
}
